package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeInquirysymptomMapper;
import com.dime.physical.domain.DimeInquirysymptom;
import com.dime.physical.service.IDimeInquirysymptomService;

/**
 * 问诊症状Service业务层处理
 * 
 * @author Tiny
 * @date 2023-10-07
 */
@Service
public class DimeInquirysymptomServiceImpl implements IDimeInquirysymptomService 
{
    @Autowired
    private DimeInquirysymptomMapper dimeInquirysymptomMapper;

    /**
     * 查询问诊症状
     * 
     * @param id 问诊症状主键
     * @return 问诊症状
     */
    @Override
    public DimeInquirysymptom selectDimeInquirysymptomById(String id)
    {
        return dimeInquirysymptomMapper.selectDimeInquirysymptomById(id);
    }

    /**
     * 查询问诊症状列表
     * 
     * @param dimeInquirysymptom 问诊症状
     * @return 问诊症状
     */
    @Override
    public List<DimeInquirysymptom> selectDimeInquirysymptomList(DimeInquirysymptom dimeInquirysymptom)
    {
        return dimeInquirysymptomMapper.selectDimeInquirysymptomList(dimeInquirysymptom);
    }

    /**
     * 新增问诊症状
     * 
     * @param dimeInquirysymptom 问诊症状
     * @return 结果
     */
    @Override
    public int insertDimeInquirysymptom(DimeInquirysymptom dimeInquirysymptom)
    {
        dimeInquirysymptom.setCreateTime(DateUtils.getNowDate());
        return dimeInquirysymptomMapper.insertDimeInquirysymptom(dimeInquirysymptom);
    }

    /**
     * 修改问诊症状
     * 
     * @param dimeInquirysymptom 问诊症状
     * @return 结果
     */
    @Override
    public int updateDimeInquirysymptom(DimeInquirysymptom dimeInquirysymptom)
    {
        dimeInquirysymptom.setUpdateTime(DateUtils.getNowDate());
        return dimeInquirysymptomMapper.updateDimeInquirysymptom(dimeInquirysymptom);
    }

    /**
     * 批量删除问诊症状
     * 
     * @param ids 需要删除的问诊症状主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquirysymptomByIds(String[] ids)
    {
        return dimeInquirysymptomMapper.deleteDimeInquirysymptomByIds(ids);
    }

    /**
     * 删除问诊症状信息
     * 
     * @param id 问诊症状主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquirysymptomById(String id)
    {
        return dimeInquirysymptomMapper.deleteDimeInquirysymptomById(id);
    }
}
